/**
 * Date:2022年1月5日 下午3:38:52
 * Copyright (c) 2022, www.bwbroad.com All Rights Reserved
 */

package com.example.vo;

import java.io.Serializable;

/**
 * Description: TODO <br/>
 * Date:2022年1月5日 下午3:38:52 <br/>
 * 
 * @author xuejianxin
 */
public abstract class OggMessage<T extends Serializable> implements Serializable {
	private static final long serialVersionUID = 1L;

	// 操作类型
	public static enum OpType {
		I, // insert
		U, // update
		D;// delete
	}

	/**
	 * 
	 */

	protected String table;
	protected OpType opType;
	protected String opTs;
	protected String currentTs;
	protected String pos;
	protected T before;
	protected T after;

	public String getTable() {
		return table;
	}

	public OpType getOpType() {
		return opType;
	}

	public String getOpTs() {
		return opTs;
	}

	public String getCurrentTs() {
		return currentTs;
	}

	public String getPos() {
		return pos;
	}

	public T getBefore() {
		return before;
	}

	public T getAfter() {
		return after;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public void setOpType(OpType opType) {
		this.opType = opType;
	}

	public void setOpTs(String opTs) {
		this.opTs = opTs;
	}

	public void setCurrentTs(String currentTs) {
		this.currentTs = currentTs;
	}

	public void setPos(String pos) {
		this.pos = pos;
	}

	public void setBefore(T before) {
		this.before = before;
	}

	public void setAfter(T after) {
		this.after = after;
	}

}
